package com.hunliji.monitor.service.api;

import com.hunliji.common.response.PageData;
import com.hunliji.monitor.service.api.model.bo.BusinessChangeAffirmOrderBO;
import com.hunliji.monitor.service.api.model.bo.BusinessChangeOrderBO;
import com.hunliji.monitor.service.api.model.param.QueryChangeAffirmOrderParam;
import com.hunliji.monitor.service.api.model.param.QueryOrderAffirmCountGroupParam;

import java.util.List;
import java.util.Map;

/**
 * 变更单
 * @author wuchen
 */
public interface BusinessChangeOrderAffirmService {
    /**
     * 新增
     * @param businessChangeAffirmOrderBO
     */
    BusinessChangeAffirmOrderBO add(BusinessChangeAffirmOrderBO businessChangeAffirmOrderBO);

    /**
     * 更新
     * @param businessChangeAffirmOrderBO
     */
    void update(BusinessChangeAffirmOrderBO businessChangeAffirmOrderBO);

    /**
     * 根据id查询
     * @param id
     * @return
     */
    BusinessChangeAffirmOrderBO queryById(Long id);

    /**
     * 列表查询
     * @param queryChangeAffirmOrderParam
     * @return
     */
    List<BusinessChangeAffirmOrderBO> query(QueryChangeAffirmOrderParam queryChangeAffirmOrderParam);

    /**
     * 分页查询
     * @param queryChangeAffirmOrderParam
     * @return
     */
    PageData<BusinessChangeAffirmOrderBO> queryPage(QueryChangeAffirmOrderParam queryChangeAffirmOrderParam);
    /**
     * 分组统计
     * @param queryOrderAffirmCountGroupParam
     * @return
     */
    Map<Long,Long> queryGroupCount(QueryOrderAffirmCountGroupParam queryOrderAffirmCountGroupParam);
}
